package com.xdtech.trans.service;

import java.util.List;

import com.xdtech.common.service.IBaseService;
import com.xdtech.trans.model.TransWebSite;
import com.xdtech.trans.vo.TransWebSiteItem;

/**
 * 
 * @author max.zheng
 * @create 2015-05-26 21:12:50
 * @since 1.0
 * @see
 */
public interface TransWebSiteService extends IBaseService<TransWebSite>{

	/**
	 * 保存更新信息
	 * @author max.zheng
	 * @create 2015-05-26 21:12:50
	 * @modified by
	 * @param item
	 * @return
	 */
	boolean saveOrUpdateTransWebSite(TransWebSiteItem item);

	/**
	 * 加载记录信息
	 * @author max.zheng
	 * @create 2015-05-26 21:12:50
	 * @modified by
	 * @param newId
	 * @return
	 */
	TransWebSiteItem loadTransWebSiteItem(Long transWebSiteId);

	/**
	 * 根据id号删除记录信息
	 * @author max.zheng
	 * @create 2015-05-26 21:12:50
	 * @modified by
	 * @param id
	 * @return
	 */
	boolean deleteTransWebSiteInfo(long id);

	/**
	 * 
	 * @author max.zheng
	 * @create 2015-05-26 21:12:50
	 * @modified by
	 * @param transWebSiteIds
	 */
	boolean deleteTransWebSiteInfo(List<Long> transWebSiteIds);
	
	/**
	 * 加载vo列表条目
	 * @author max.zheng
	 * @create 2015-05-26 21:12:50
	 * @modified by
	 * @return
	 */
	List<TransWebSiteItem> loadItems();

	/**
	 * 
	 * @author max.zheng
	 * @create 2015-6-9下午10:57:39
	 * @modified by
	 * @param id
	 * @return
	 */
	TransWebSite getPersonWebsite(Long id);

	/**
	 * 加载所有网点名称
	 * @author max.zheng
	 * @create 2015-7-4下午11:44:45
	 * @modified by
	 * @return
	 */
	List<String> loadWebsiteNames();

	/**
	 * 
	 * @author <a href="max.zheng@zkteco.com">郑志雄</>
	 * @since 2015-7-6 上午11:27:38
	 * @param startWebsite
	 * @return
	 */
	TransWebSite getWebsiteByName(String startWebsite);

	/**
	 * 获取用户所在网点下的列表id 用逗号组合隔开
	 * @author max.zheng
	 * @create 2015-7-10下午10:33:10
	 * @modified by
	 * @param id
	 * @return
	 */
	String getPersonSubWebsiteIdsById(Long id);
}
